package com.vframework.common.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vframework.base.exception.BaseException;
import com.vframework.base.model.BaseBean;
import com.vframework.base.service.impl.BaseServiceImpl;
import com.vframework.common.mapper.CommonMapper;
import com.vframework.common.model.RegionsBean;
import com.vframework.common.service.CommonService;
/***************************************************************
 * Name:        CommonServiceImpl.java     
 * Create At:   2010-04-22
 * Module:      系统公共模块Service
 * Description: [系统公共模块]
 * Author       shanzhitong
 * ------------------------------------------------------------
 * 修改历史
 * 序号  日期  修改人   修改原因
 * 1
 * 2
***************************************************************/

@Service
public class CommonServiceImpl extends BaseServiceImpl implements CommonService {
    
    @Autowired
    private CommonMapper commonMapper;
    
	/**
	 * Author:shanzhitong
     * Create At:2010-06-22
     * Description: [初始化字典表方法]
     * @return List<BaseBean>
	 * @throws BaseException 
     */
	public List<BaseBean> getDictList() throws BaseException {
		return commonMapper.getDictList();
	}
	
	/**
	* Author:shanzhitong
	* Create At:2011-9-1
	* Description: [初始化加载地市列表]
	* @return List<BaseBean>
	*/
	public List<RegionsBean> getCityList() throws BaseException {
		return commonMapper.getCityList();
	}
	
	/**
	 * Author:shanzhitong
	 * Create At:2011-9-1
	 * Description: [初始化加载地市列表]
	 * @return List<BaseBean>
	 */
	public List<BaseBean> getOrgList(String orgType) throws BaseException {
	    return commonMapper.getOrgList(orgType);
	}
}
